package cn.homework.service.impl;

import cn.homework.dao.BackstageCustomerDao;
import cn.homework.dao.impl.BackstageCustomerDaoImpl;
import cn.homework.domain.Customers;
import cn.homework.service.BackstageCustomerService;

import java.util.List;
import java.util.Map;

/**
 * @author ACT
 */
public class BackstageCustomerServiceImpl implements BackstageCustomerService {
    BackstageCustomerDao dao = new BackstageCustomerDaoImpl();
    @Override
    public List<Customers> customersShow() {
        return dao.findCustomers();
    }

    @Override
    public Customers findCustomerByName(String customerName) {
        return dao.findCustomerByName(customerName);
    }

    @Override
    public void delCustomerByName(String customerName) {
        dao.delCustomerByName(customerName);
    }

    @Override
    public List<Customers> queryCustomers(Map<String, String[]> map) {
        return dao.queryCustomers(map);
    }
}
